package com.cn.kehong.api;

import com.alibaba.fastjson.JSONObject;
import com.cn.kehong.domain.Login;
import com.cn.kehong.utils.QueryForm;

import java.util.List;
import java.util.Map;

public interface ILoginService {

    List<Login> getLoginList(QueryForm queryForm)throws Exception;

    List<Login> getLoginSelectList()throws Exception;

    List<Login> getLoginAndRoleSelectList()throws Exception;

    String addLoginDetail(Login login)throws Exception;

    String updateLoginDetail(Login login)throws Exception;

    String updatePassword(Login login)throws Exception;

    String delLoginDetail(QueryForm queryForm)throws Exception;

    String getLoginDetail(Login login)throws Exception;

    Login doLogin(Login login)throws Exception;

    int countLogin(String loginAccount, String userId)throws Exception;

    int countLoginPhone(String phone, String userId)throws Exception;

    Map<String, Login> getUserMap() throws Exception;

    Map<String, String> getUserNameMap() throws Exception;


    //登录
    Login doLoginByPhone(String  user, String password,String code)throws Exception;
    String sendCode(String  phone)throws Exception;


    //获取操作工名称
    String getLoginNameByWorkNum(String workNum)throws Exception;

    List<Login> getLoginLiaoYuan()throws Exception;


    int batchLoginList(List<Login> loginArrayList)throws Exception;
}
